import request from "@/api/request"

export const getAllPlace=(data)=>{
    return request({
        url:`/practise/${data.pageNum}/${data.pageSize}`,
    })
}
export const getAllPractise=(data)=>{
    return request({
        url:`/practise/place/${data.pageNum}/${data.pageSize}`,
    })
}
export const getPlaceByPlace=(data)=>{
    return request({
        url:`/practise/place/${data.pageNum}/${data.pageSize}/${data.place}`,
    })
}
export const getPractiseBytow=(data)=>{
    return request({
        url:`/practise/2/${data.pageNum}/${data.pageSize}`,
    })
}
export const getPractiseBythree=(data)=>{
    return request({
        url:`/practise/3/${data.pageNum}/${data.pageSize}`,
    })
}
export const getPractiseplace=()=>{
    return request({
        url:'/practise/three',
    })
}
export const UpdatePractise=(data)=>{
    return request({
        url:'/practise',
        method:'PUT',
        data
    })
}
export const InsertPractise=(data)=>{
    return request({
        url:'/practise',
        method:'POST',
        data
    })
}
export const deletePractiseById=(id)=>{
    return request({
        url:`/practise/${id}`,
        method:'DELETE',
    })
}